/**
 * 
 */
package com.thon;

import org.apache.commons.lang3.SystemUtils;

/**
 * @author THON
 * @email thon.ju@meet-future.com
 * @date 2011-11-24 上午11:06:25
 * @description:
 */
public class Application {
	// application properties
	public static final String PRODUCT_NAME = "Pt System";
	public static final String CODE_NAME = "pt";
	public static final String VERSION = "0.0.1";
	public static final String LICENSE = "GNU Affero Genral Public License (AGPL3)";
	public static final String RUNTIME = SystemUtils.getUserHome().getAbsolutePath() + "/.pt"; 
	// operating system properties
	public static final String OS_NAME = SystemUtils.OS_NAME;
	public static final String OS_ARCH = SystemUtils.OS_ARCH;
	public static final String OS_VERVION = SystemUtils.OS_VERSION;
	// 
	public static final String JAVA_HOME = SystemUtils.JAVA_HOME;
	public static final String JAVA_TMPDIR = SystemUtils.JAVA_IO_TMPDIR;
	public static final String JAVA_VENDOR = SystemUtils.JAVA_VENDOR;
	public static final String JAVA_VERSION = SystemUtils.JAVA_VERSION;
	
	private static Application instance = new Application(); 
	
	private Application() {
	}
	
	public static Application getInstance() {
		return instance;
	}
	
	public String getProductName() {
		return PRODUCT_NAME;
	}
	
	public  String getCodeName() {
		return CODE_NAME;
	}
	
	public  String getLicense() {
		return LICENSE;
	}
	
	public  String getVersion() {
		return VERSION;
	}
	
	public String getRuntime() {
		return RUNTIME;
	}
	
	public String getOsArch() {
		return OS_ARCH;
	}
	
	public String getOsName() {
		return OS_NAME;
	}
	
	public String getOsVersion() {
		return OS_VERVION;
	}
	
	public String getJavaHome() {
		return JAVA_HOME;
	}
	
	public String getJavaTmpdir() {
		return JAVA_TMPDIR;
	}
	
	public String getJavaVendor() {
		return JAVA_VENDOR;
	}
	
	public String getJavaVersion() {
		return JAVA_VERSION;
	}
}
